package com.zzptc.sky.baidudemo.vo;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/6/5.
 */

@Entity(
        //数据库表名
        nameInDb = "dm_mobile",
        //添加索引
        indexes = {
                @Index(value = "mobileNumber",unique = true),
                @Index(value = "areaCode",unique = true)
        },
        //是否创建表
        createInDb = false
)
public class MobileInfo {
    @Id
    private Integer id;
    @Property(nameInDb = "MobileNumber")
    private String mobileNumber;
    @Property(nameInDb = "MobileArea")
    private String mobileArea;
    @Property(nameInDb = "MobileType")
    private String mobileType;
    @Property(nameInDb = "AreaCode")
    private String areaCode;
    @Property(nameInDb = "PostCode")
    private String postCode;
public String getPostCode() {
        return this.postCode;
}
public void setPostCode(String postCode) {
        this.postCode = postCode;
}
public String getAreaCode() {
        return this.areaCode;
}
public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
}
public String getMobileType() {
        return this.mobileType;
}
public void setMobileType(String mobileType) {
        this.mobileType = mobileType;
}
public String getMobileArea() {
        return this.mobileArea;
}
public void setMobileArea(String mobileArea) {
        this.mobileArea = mobileArea;
}
public String getMobileNumber() {
        return this.mobileNumber;
}
public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
}
public Integer getId() {
        return this.id;
}
public void setId(Integer id) {
        this.id = id;
}
@Generated(hash = 86190040)
public MobileInfo(Integer id, String mobileNumber, String mobileArea,
                String mobileType, String areaCode, String postCode) {
        this.id = id;
        this.mobileNumber = mobileNumber;
        this.mobileArea = mobileArea;
        this.mobileType = mobileType;
        this.areaCode = areaCode;
        this.postCode = postCode;
}
@Generated(hash = 1116241720)
public MobileInfo() {
}
}
